package com.cause.entiy.user;

import java.util.ArrayList;
import java.util.List;

public class MenusExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MenusExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMidIsNull() {
            addCriterion("mid is null");
            return (Criteria) this;
        }

        public Criteria andMidIsNotNull() {
            addCriterion("mid is not null");
            return (Criteria) this;
        }

        public Criteria andMidEqualTo(Integer value) {
            addCriterion("mid =", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotEqualTo(Integer value) {
            addCriterion("mid <>", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThan(Integer value) {
            addCriterion("mid >", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThanOrEqualTo(Integer value) {
            addCriterion("mid >=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThan(Integer value) {
            addCriterion("mid <", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThanOrEqualTo(Integer value) {
            addCriterion("mid <=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidIn(List<Integer> values) {
            addCriterion("mid in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotIn(List<Integer> values) {
            addCriterion("mid not in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidBetween(Integer value1, Integer value2) {
            addCriterion("mid between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotBetween(Integer value1, Integer value2) {
            addCriterion("mid not between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andMnameIsNull() {
            addCriterion("mname is null");
            return (Criteria) this;
        }

        public Criteria andMnameIsNotNull() {
            addCriterion("mname is not null");
            return (Criteria) this;
        }

        public Criteria andMnameEqualTo(String value) {
            addCriterion("mname =", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameNotEqualTo(String value) {
            addCriterion("mname <>", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameGreaterThan(String value) {
            addCriterion("mname >", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameGreaterThanOrEqualTo(String value) {
            addCriterion("mname >=", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameLessThan(String value) {
            addCriterion("mname <", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameLessThanOrEqualTo(String value) {
            addCriterion("mname <=", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameLike(String value) {
            addCriterion("mname like", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameNotLike(String value) {
            addCriterion("mname not like", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameIn(List<String> values) {
            addCriterion("mname in", values, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameNotIn(List<String> values) {
            addCriterion("mname not in", values, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameBetween(String value1, String value2) {
            addCriterion("mname between", value1, value2, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameNotBetween(String value1, String value2) {
            addCriterion("mname not between", value1, value2, "mname");
            return (Criteria) this;
        }

        public Criteria andMztIsNull() {
            addCriterion("mzt is null");
            return (Criteria) this;
        }

        public Criteria andMztIsNotNull() {
            addCriterion("mzt is not null");
            return (Criteria) this;
        }

        public Criteria andMztEqualTo(Integer value) {
            addCriterion("mzt =", value, "mzt");
            return (Criteria) this;
        }

        public Criteria andMztNotEqualTo(Integer value) {
            addCriterion("mzt <>", value, "mzt");
            return (Criteria) this;
        }

        public Criteria andMztGreaterThan(Integer value) {
            addCriterion("mzt >", value, "mzt");
            return (Criteria) this;
        }

        public Criteria andMztGreaterThanOrEqualTo(Integer value) {
            addCriterion("mzt >=", value, "mzt");
            return (Criteria) this;
        }

        public Criteria andMztLessThan(Integer value) {
            addCriterion("mzt <", value, "mzt");
            return (Criteria) this;
        }

        public Criteria andMztLessThanOrEqualTo(Integer value) {
            addCriterion("mzt <=", value, "mzt");
            return (Criteria) this;
        }

        public Criteria andMztIn(List<Integer> values) {
            addCriterion("mzt in", values, "mzt");
            return (Criteria) this;
        }

        public Criteria andMztNotIn(List<Integer> values) {
            addCriterion("mzt not in", values, "mzt");
            return (Criteria) this;
        }

        public Criteria andMztBetween(Integer value1, Integer value2) {
            addCriterion("mzt between", value1, value2, "mzt");
            return (Criteria) this;
        }

        public Criteria andMztNotBetween(Integer value1, Integer value2) {
            addCriterion("mzt not between", value1, value2, "mzt");
            return (Criteria) this;
        }

        public Criteria andMurlIsNull() {
            addCriterion("murl is null");
            return (Criteria) this;
        }

        public Criteria andMurlIsNotNull() {
            addCriterion("murl is not null");
            return (Criteria) this;
        }

        public Criteria andMurlEqualTo(String value) {
            addCriterion("murl =", value, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlNotEqualTo(String value) {
            addCriterion("murl <>", value, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlGreaterThan(String value) {
            addCriterion("murl >", value, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlGreaterThanOrEqualTo(String value) {
            addCriterion("murl >=", value, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlLessThan(String value) {
            addCriterion("murl <", value, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlLessThanOrEqualTo(String value) {
            addCriterion("murl <=", value, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlLike(String value) {
            addCriterion("murl like", value, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlNotLike(String value) {
            addCriterion("murl not like", value, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlIn(List<String> values) {
            addCriterion("murl in", values, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlNotIn(List<String> values) {
            addCriterion("murl not in", values, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlBetween(String value1, String value2) {
            addCriterion("murl between", value1, value2, "murl");
            return (Criteria) this;
        }

        public Criteria andMurlNotBetween(String value1, String value2) {
            addCriterion("murl not between", value1, value2, "murl");
            return (Criteria) this;
        }

        public Criteria andMtargetIsNull() {
            addCriterion("mtarget is null");
            return (Criteria) this;
        }

        public Criteria andMtargetIsNotNull() {
            addCriterion("mtarget is not null");
            return (Criteria) this;
        }

        public Criteria andMtargetEqualTo(Integer value) {
            addCriterion("mtarget =", value, "mtarget");
            return (Criteria) this;
        }

        public Criteria andMtargetNotEqualTo(Integer value) {
            addCriterion("mtarget <>", value, "mtarget");
            return (Criteria) this;
        }

        public Criteria andMtargetGreaterThan(Integer value) {
            addCriterion("mtarget >", value, "mtarget");
            return (Criteria) this;
        }

        public Criteria andMtargetGreaterThanOrEqualTo(Integer value) {
            addCriterion("mtarget >=", value, "mtarget");
            return (Criteria) this;
        }

        public Criteria andMtargetLessThan(Integer value) {
            addCriterion("mtarget <", value, "mtarget");
            return (Criteria) this;
        }

        public Criteria andMtargetLessThanOrEqualTo(Integer value) {
            addCriterion("mtarget <=", value, "mtarget");
            return (Criteria) this;
        }

        public Criteria andMtargetIn(List<Integer> values) {
            addCriterion("mtarget in", values, "mtarget");
            return (Criteria) this;
        }

        public Criteria andMtargetNotIn(List<Integer> values) {
            addCriterion("mtarget not in", values, "mtarget");
            return (Criteria) this;
        }

        public Criteria andMtargetBetween(Integer value1, Integer value2) {
            addCriterion("mtarget between", value1, value2, "mtarget");
            return (Criteria) this;
        }

        public Criteria andMtargetNotBetween(Integer value1, Integer value2) {
            addCriterion("mtarget not between", value1, value2, "mtarget");
            return (Criteria) this;
        }

        public Criteria andMiconIsNull() {
            addCriterion("micon is null");
            return (Criteria) this;
        }

        public Criteria andMiconIsNotNull() {
            addCriterion("micon is not null");
            return (Criteria) this;
        }

        public Criteria andMiconEqualTo(String value) {
            addCriterion("micon =", value, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconNotEqualTo(String value) {
            addCriterion("micon <>", value, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconGreaterThan(String value) {
            addCriterion("micon >", value, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconGreaterThanOrEqualTo(String value) {
            addCriterion("micon >=", value, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconLessThan(String value) {
            addCriterion("micon <", value, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconLessThanOrEqualTo(String value) {
            addCriterion("micon <=", value, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconLike(String value) {
            addCriterion("micon like", value, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconNotLike(String value) {
            addCriterion("micon not like", value, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconIn(List<String> values) {
            addCriterion("micon in", values, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconNotIn(List<String> values) {
            addCriterion("micon not in", values, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconBetween(String value1, String value2) {
            addCriterion("micon between", value1, value2, "micon");
            return (Criteria) this;
        }

        public Criteria andMiconNotBetween(String value1, String value2) {
            addCriterion("micon not between", value1, value2, "micon");
            return (Criteria) this;
        }

        public Criteria andMdescIsNull() {
            addCriterion("mdesc is null");
            return (Criteria) this;
        }

        public Criteria andMdescIsNotNull() {
            addCriterion("mdesc is not null");
            return (Criteria) this;
        }

        public Criteria andMdescEqualTo(Integer value) {
            addCriterion("mdesc =", value, "mdesc");
            return (Criteria) this;
        }

        public Criteria andMdescNotEqualTo(Integer value) {
            addCriterion("mdesc <>", value, "mdesc");
            return (Criteria) this;
        }

        public Criteria andMdescGreaterThan(Integer value) {
            addCriterion("mdesc >", value, "mdesc");
            return (Criteria) this;
        }

        public Criteria andMdescGreaterThanOrEqualTo(Integer value) {
            addCriterion("mdesc >=", value, "mdesc");
            return (Criteria) this;
        }

        public Criteria andMdescLessThan(Integer value) {
            addCriterion("mdesc <", value, "mdesc");
            return (Criteria) this;
        }

        public Criteria andMdescLessThanOrEqualTo(Integer value) {
            addCriterion("mdesc <=", value, "mdesc");
            return (Criteria) this;
        }

        public Criteria andMdescIn(List<Integer> values) {
            addCriterion("mdesc in", values, "mdesc");
            return (Criteria) this;
        }

        public Criteria andMdescNotIn(List<Integer> values) {
            addCriterion("mdesc not in", values, "mdesc");
            return (Criteria) this;
        }

        public Criteria andMdescBetween(Integer value1, Integer value2) {
            addCriterion("mdesc between", value1, value2, "mdesc");
            return (Criteria) this;
        }

        public Criteria andMdescNotBetween(Integer value1, Integer value2) {
            addCriterion("mdesc not between", value1, value2, "mdesc");
            return (Criteria) this;
        }

        public Criteria andMbzIsNull() {
            addCriterion("mbz is null");
            return (Criteria) this;
        }

        public Criteria andMbzIsNotNull() {
            addCriterion("mbz is not null");
            return (Criteria) this;
        }

        public Criteria andMbzEqualTo(String value) {
            addCriterion("mbz =", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzNotEqualTo(String value) {
            addCriterion("mbz <>", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzGreaterThan(String value) {
            addCriterion("mbz >", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzGreaterThanOrEqualTo(String value) {
            addCriterion("mbz >=", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzLessThan(String value) {
            addCriterion("mbz <", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzLessThanOrEqualTo(String value) {
            addCriterion("mbz <=", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzLike(String value) {
            addCriterion("mbz like", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzNotLike(String value) {
            addCriterion("mbz not like", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzIn(List<String> values) {
            addCriterion("mbz in", values, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzNotIn(List<String> values) {
            addCriterion("mbz not in", values, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzBetween(String value1, String value2) {
            addCriterion("mbz between", value1, value2, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzNotBetween(String value1, String value2) {
            addCriterion("mbz not between", value1, value2, "mbz");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}